package com.travel.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @program: travel
 * @author: lvyaxin
 * @create: 2024-07-07 18:43
 **/
@Getter
public enum OrderStates {
    TOBECONFIRM(1, "待确认"),
    TOBESIGN(2, "待签署"),
    TOBEPAY(3, "待支付"),
    PAYED(4, "待出行"),
    DOWN(5, "已完成");
    //@EnumValue
    @JsonValue
    private final Integer code;
    private final String name;

    OrderStates(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
